package com.shangjinrong.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shangjinrong.domain.UserAccount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

@Mapper
public interface UserAccountMapper extends BaseMapper<UserAccount> {
    public UserAccount selectById(@Param("userId") long userId);

    void updateAccount(@Param("bindCode") String bindCode, @Param("amount") BigDecimal amount, @Param("freezeAmount") BigDecimal freezeAmount);
}